<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"  xmlns:c="http://java.sun.com/jsp/jstl/core"
				xmlns:rich="http://richfaces.org/rich"
				xmlns:a4j="http://richfaces.org/a4j">
	<div id="container">
		<h:form>
			<div id="navi">
				<span>
					<h:graphicImage value="/resources/image/homeicon.jpg" alt="image" width="15" height="15"/>
					<h:outputLink value="index.xhtml" class="navi_button">Back to Entry</h:outputLink>
				</span>
				|
				<span>
					<h:graphicImage value="/resources/image/searchicon.jpg" alt="image" width="15" height="15"/>
					<h:outputLink value="customerSearchOrder.xhtml" class="navi_button">Search Purchases</h:outputLink>
				</span>
				|
				<span>
					<h:outputLink value="browse.xhtml" class="navi_link">Browse</h:outputLink>
				</span>
				>
				<span class="navi_future">
					Shopping Cart
				</span>
				>
				<span class="navi_future">
					Check Out
				</span>
				>
				<span class="navi_future">
					Confirm
				</span>
				>
				<span class="navi_current">
					Finish
				</span>
			</div>
			<div id="finish_decoration">

			</div>
			<div id="finish_content">
				<div class="content_head">
					<span>Purchase Complete!</span>
				</div>
				<div class="content_body">
					<div class="success_banner">
						<h:outputText value="The new purchase is created with number #{checkOut.newPurchase.number}." rendered="#{checkOut.newPurchase != null}" />
						<c:if test="#{checkOut.newPurchase != null}">
							<c:set var="dummy" value="#{finish.inputMessage}" />
						</c:if>
					</div>
				</div>
			</div>
			<div class="footnav">
				<span><h:commandButton class="footnav_button" onclick="location.href='browse.xhtml'" value="&lt;&lt; Back" type="button" /></span>
				<span><h:commandButton class="footnav_button" value="Next &gt;&gt;" disabled="true" /></span>
			</div>
			<h:outputText value="#{finish.inputMessage}" />
		</h:form>
	</div>
</ui:composition>
